# 电影院地址表
from App.ext import db
from App.models import BaseModel
from App.models.cinema_admin.cinema_user_model import CinemaUser


class CinemaAddress(BaseModel):
    C_user_id = db.Column(db.Integer , db.ForeignKey(CinemaUser.id))
    name = db.Column(db.String(64))
    city = db.Column(db.String(16))
    district = db.Column(db.String(16))
    address = db.Column(db.String(128))
    phone = db.Column(db.String(32))
    score = db.Column(db.Float , default = 0)
    hallnum = db.Column(db.Integer , default=1)    # 放映厅号
    serviecharge = db.Column(db.Float , default=0)   # 服务评分
    astrict = db.Column(db.Float , default=0)   #
    flag = db.Column(db.Boolean , default=False)
    is_delete = db.Column(db.Boolean , default = False)
